package com.zj.ssm.controller;

import com.zj.ssm.pojo.domain.Subscribe;
import com.zj.ssm.result.AjaxResult;
import com.zj.ssm.service.CaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:Coco
 * @date:2022/2/2220:03
 * @version:1.8
 */
@RequestMapping("case")
@RestController
public class CaseController {

    @Autowired
    private CaseService caseService;

    @RequestMapping("query")
    public AjaxResult query(String identity){

        System.out.println(identity);
        return caseService.query(identity);

    }
    @RequestMapping("update")
    public AjaxResult update(Subscribe subscribe){

        System.out.println(subscribe);

        return caseService.update(subscribe);

    }
}
